package com.boot.down.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.omg.PortableServer.SERVANT_RETENTION_POLICY_ID;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Administrator
 */
public class UserVO implements Serializable {

    private static final long serialVersionUID = -1030575563529933726L;
    private String userName;

    private String userRole;

    private String userIdCard;

    /**
     * 返回的时候时间格式化; 当然配置文件中统一
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public String getUserName() {
        return userName;
    }

    public UserVO setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    public String getUserRole() {
        return userRole;
    }

    public UserVO setUserRole(String userRole) {
        this.userRole = userRole;
        return this;
    }

    public String getUserIdCard() {
        return userIdCard;
    }

    public UserVO setUserIdCard(String userIdCard) {
        this.userIdCard = userIdCard;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public UserVO setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    @Override
    public String toString() {
        return "UserVO{" +
                "userName='" + userName + '\'' +
                ", userRole='" + userRole + '\'' +
                ", userIdCard='" + userIdCard + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
